const express = require("express");
const router = express.Router();
const {
  getCtr,
  getCtr1,
  postCtr,
  putCtr,
  delCtr,
  postCtr1,getRecycle,postRecycle,getRecycles,delRecycle,delRecycles
} = require("../../../controller/admin/companylog");

//模糊查询
router.get("/companylogs", getCtr1);
//公司日志查询所有数据
router.get("/companylogsearch", getCtr);

//添加
router.post("/companylogadd", postCtr);
router.post("/companylogadd1", postCtr1);

//修改
router.put("/companylogadd1", putCtr);

//删除
router.delete("/companylogdel", delCtr);

//====================回收站=======================
//查询全部数据
router.get("/RecycleAll", getRecycle);
// 开启新增
router.post("/Recycleadd", postRecycle);

// 模糊查询
router.get("/Recycles", getRecycles);

// 删除
router.delete("/Recycledel", delRecycle);
// 恢复
router.delete("/Recycledels", delRecycles);

module.exports = router;
